﻿@model ProMvc.Models.GuestResponse

@{
    ViewBag.Title = "RsvpForm";
}

<h2>RsvpForm</h2>
@using (Html.BeginForm())
{
    @Html.ValidationSummary()
    <p>Your name:@Html.TextBoxFor(u => u.Name)</p>
    <p>Your email:@Html.TextBoxFor(u => u.Email)</p>
    <p>Your phone:@Html.TextBoxFor(u => u.Phone)</p>
    <p>
        Will you attend?
        @Html.DropDownListFor(u => u.WithAttached, new[]{
     new SelectListItem(){Text = "Yes,I'll be there!",Value=bool.TrueString},
     new SelectListItem(){Text = "No,I can't come",Value=bool.FalseString}
   }, "Choose an option")
</p>
    <p><input type="submit" value="Submit" /></p>
}